package com.entity;

import com.baomidou.mybatisplus.annotation.TableName;

@TableName("drug")
public class Drug {  
    private int drugId;  
    private String drugName;  
    private double price;  
  
    // 构造方法  
    public Drug(int drugId, String drugName, double price) {  
        this.drugId = drugId;  
        this.drugName = drugName;
        this.price = price;  
    }  
  
    // 获取药物ID  
    public int getDrugId() {  
        return drugId;  
    }  
  
    // 设置药物ID  
    public void setDrugId(int drugId) {  
        this.drugId = drugId;  
    }  
  
    // 获取药物名称  
    public String getDrugName() {  
        return drugName;  
    }  
  
    // 设置药物名称  
    public void setDrugName(String drugName) {  
        this.drugName = drugName;  
    } 
  
    // 获取药物价格  
    public double getPrice() {  
        return price;  
    }  
  
    // 设置药物价格  
    public void setPrice(double price) {  
        this.price = price;  
    }  
}